<?php
require_once("vcl/vcl.inc.php");
require_once("lib/db_connection.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");

//Class definition
class veh_decommission_delete extends Page
{
       function veh_decommission_deleteCreate($sender, $params)
       {
       $autoid = $_GET['autoid'];
       $veh_id = $_GET['veh'];
       $query_delete = "DELETE FROM veh_decommission WHERE autoid='".$autoid."'";
       mysql_query($query_delete) or die("DELETE ".mysql_error());
       redirect("veh_decommission_list.php?veh=".$veh_id);
       }


}

global $application;

global $veh_decommission_delete;

//Creates the form
$veh_decommission_delete=new veh_decommission_delete($application);

//Read from resource file
$veh_decommission_delete->loadResource(__FILE__);

//Shows the form
$veh_decommission_delete->show();

?>